package com.ryl.yomall.item.client;

import com.ryl.yomall.item.client.impl.ItemFeignClientImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.Map;

/**
 * @Date 13:51
 * @Author ryl
 */
@FeignClient(value = "service-item")
public interface ItemFeignClient {
    /**
     *
     * @param skuId
     * @return map
     */
    @GetMapping("/api/item/{skuId}")
    Map getItem(@PathVariable(name = "skuId") Long skuId);
}
